home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cug172 / lexswi.c < prev    next >
C/C++ Source or Header  |  1986-02-05  |  961b  |  41 lines

  1. /*
  2.   HEADER: CUG     nnn.nn;
  3.   TITLE:     LEX - A Lexical Analyser Generator
  4.   VERSION:     1.0 for IBM-PC
  5.   DATE:      Jan 30, 1985
  6.   DESCRIPTION:     A Lexical Analyser Generator. From UNIX
  7.   KEYWORDS:     Lexical Analyser Generator YACC C PREP
  8.   SYSTEM:     IBM-PC and Compatiables
  9.   FILENAME:      LEXSWI.C
  10.   WARNINGS:     This program is not for the casual user. It will
  11.          be useful primarily to expert developers.
  12.   CRC:         N/A
  13.   SEE-ALSO:     YACC and PREP
  14.   AUTHORS:     Scott Guthery 11100 leafwood lane Austin, TX 78750
  15.   COMPILERS:     DESMET-C
  16.   REFERENCES:     UNIX Systems Manuals
  17. */
  18. /*
  19.  * lexswitch -- switch lex tables
  20.  */
  21.  
  22. /*
  23.  * Bob Denny     28-Aug-82  Remove reference to stdio.h
  24.  * Scott Guthery 20-Nov-83    Adapt for IBM PC & DeSmet C
  25.  */
  26.  
  27. #include <lex.h>
  28.  
  29. extern struct lextab *_tabp;
  30.  
  31. struct lextab *
  32. lexswitch(lp)
  33. struct lextab *lp;
  34. {
  35.         register struct lextab *olp;
  36.  
  37.         olp = _tabp;
  38.         _tabp = lp;
  39.         return(olp);
  40. }
  41.